import yaml

def get_yaml_data(path):
    with open(path,mode='r',encoding='utf-8') as f:
        data = yaml.load(f,Loader=yaml.FullLoader)

    return data